import request from '@/utils/request'

// 查询借据冲账管理列表
export function listLoanOffset(query) {
    return request({
        url: '/business/LoanOffset/list',
        method: 'get',
        params: query
    })
}

// 查询借据冲账管理详细
export function getLoanOffset(id) {
    return request({
        url: '/business/LoanOffset/' + id,
        method: 'get'
    })
}

// 新增借据冲账管理
export function addLoanOffset(data) {
    return request({
        url: '/business/LoanOffset',
        method: 'post',
        data: data
    })
}

// 修改借据冲账管理
export function updateLoanOffset(data) {
    return request({
        url: '/business/LoanOffset',
        method: 'put',
        data: data
    })
}

// 删除借据冲账管理
export function delLoanOffset(id) {
    return request({
        url: '/business/LoanOffset/' + id,
        method: 'delete'
    })
}

// 导出借据冲账管理
export function exportLoanOffset(query) {
    return request({
        url: '/business/LoanOffset/export',
        method: 'get',
        params: query
    })
}